import request from '@/utils/request'

//添加小节
export function addVideo(video) {
  return request({
    url: `/eduService/edu-video/addVideo`,
    method: 'post',
    data:video
  })
}

//根据id查询章节
export function getVideo(id) {
  return request({
    url: `/eduService/edu-video/getVideo/${id}`,
    method: 'get',
  })
}

//修改章节
export function updateVideo(video) {
  return request({
    url: `/eduService/edu-video/updateVideo`,
    method: 'post',
    data:video
  })
}

//删除章节
export function deleteVideo(id) {
  return request({
    url: `/eduService/edu-video/${id}`,
    method: 'delete'
  })
}